create a sleep tracker in Python